package com.jason.www.state_pattern.demo2.state;


import com.jason.www.state_pattern.demo2.context.ATMContext;

public class ATMNoServiceState implements IATMState {
    private ATMContext atmContext;

    public ATMNoServiceState(ATMContext atmContext) {
        this.atmContext = atmContext;
    }

    @Override
    public void insertCard() {
        System.out.println("插卡失败，机器发生了故障");
    }

    @Override
    public void submitPwd() {
        System.out.println("密码提交失败，机器发生了故障");
    }

    @Override
    public void getCash() {
        System.out.println("取款失败，机器发生了故障");
    }

    @Override
    public void queryBalance() {
        System.out.println("余额查询失败，机器发生了故障");
    }

    @Override
    public void ejectCard() {
        System.out.println("取卡失败，机器发生了故障");
    }
}
